//
//  PhotoBrowserLayout.swift
//  LZFPhotoBrowser
//
//  Created by 梁梓烽 on 16/7/27.
//  Copyright © 2016年 liangzifeng. All rights reserved.
//

import UIKit

class PhotoBrowserLayout: UICollectionViewFlowLayout {

    override func prepareLayout() {
        super.prepareLayout()
        
        //定义流布局
        itemSize =  collectionView!.bounds.size
        minimumInteritemSpacing = 0;
        minimumLineSpacing = 0
    
        scrollDirection = .Horizontal
        collectionView?.pagingEnabled = true
        collectionView?.showsHorizontalScrollIndicator = false
        
    }
}
